﻿#ifndef DA_H
#define DA_H

#include "QFrame"
#include <QWidget>
#include <QPushButton>
#include <QPaintEvent>
#include <QEvent>
#include "DATime.h"
#include "DATray.h"
#include "DAHoliday.h"
#include "DASystemInfo.h"
#include "DAGraphicsInfo.h"

class DA : public QFrame
{
    Q_OBJECT

public:
    DA(QFrame *parent = nullptr);
    ~DA();

    QString getTextFromYiYan();
private:
    QString NetStatusStyle;
    DATime *dat;
    QLabel LabelYiYan,LabelYiFrom;
    QLabel NetStatus;
    void paintEvent(QPaintEvent *e);
    bool event(QEvent *event);
    DATray *daTray;
    DAHoliday *daHoliday;
    DASystemInfo *daSystemInfo;
    DAGraphicsInfo *graphicsInfo;
    void NetWorkStatus();
};
#endif // DA_H
